*,
body {
  margin: 0;
  padding: 0;
}

.bold {
  font-weight: bold;
}

.red {
  color: #FC4B44;
}

.row {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.col {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  text-align: center;
}

.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-wrap: normal;
}

.flex {
  display: flex;
}

.flex_align_center {
  justify-content: center;
  align-items: center;
}

.flex_align_middle {
  justify-content: space-between;
  align-items: center;
}

.flex_column {
  flex-direction: column;
}

.center {
  text-align: center;
}

.ml10 {
  margin-left: 10px
}

.mr10 {
  margin-right: 10px
}

.ml20 {
  margin-left: 20px
}

.mr20 {
  margin-right: 20px
}

.mb10 {
  margin-bottom: 10px;
}

.mt10 {
  margin-top: 10px;
}

.mb20 {
  margin-bottom: 20px;
}

.mt20 {
  margin-top: 20px;
}

.pdt-6 {
  padding-top: 6px;
}

.pdt-10 {
  padding-top: 10px;
}
.pdb-10 {
  padding-bottom: 10px !important;
}
.pdl-10 {
  padding-left: 10px;
}
.pdr-6 {
  padding-right: 6px;
}
.pdr-10 {
  padding-right: 10px;
}

.fz-12 {
  font-size: 12px;
}

.img-auto {
  width: 100%;
  height: auto;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.mask_bg {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  z-index: 1;
  background-color: #000;
  opacity: 0.4;
}

//页面主体样式
.public_main_style {
  border-radius: 5px;
  height: calc(100% - 20px);
  min-height: 300px;

  .public_main_head {
    padding: 10px 10px 0;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: @box-shadow;

    &.main {
      padding: 10px;
    }

    .el-form-item {
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      width: 100%;
      .el-select {
        width: 100%;
      }
      .el-form-item__label {
        flex-shrink: 0;
      }
      .el-form-item__content {
        width: 70%;
        line-height: 32px;
      }
    }
  }

  //表格全局样式
  .public_main_table {
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    margin-top: 10px;
    box-shadow: @box-shadow;

    .table_solt_top {
      padding-bottom: 10px;
    }

    .table_solt_bottom {
      padding-top: 10px;
    }

    .el-table {

      .el-table__header-wrapper,
      .el-table__fixed,
      .el-table__fixed-right {
        tr>th {
          background-color: #E9EEF3;
          border-left: solid 1px #fff;

          &:first-child {
            border-left: none;
          }
        }
      }
    }
  }

  //分页全局样式
  .public_main_page {
    margin-top: 10px;
    text-align: right;

    .el-input--mini .el-input__inner {
      height: 22px;
      line-height: 22px;
    }
  }
}

///弹框样式
.el-dialog {
  border-radius: 10px;

  .el-dialog__header {
    border-bottom: solid 1px #E9EEF3;
  }

  .el-dialog__body {
    padding: 10px 15px;

    .public_main_style {
      min-height: auto;

      .public_main_table {
        padding: 0 10px;
      }
    }

    .public_main_head {
      .el-form-item {
        margin-bottom: 12px;
      }
    }

    .el-form-item {
      margin-bottom: 17px;
    }
  }

  .el-dialog__footer {
    border-top: solid 1px #E9EEF3;
    margin-top: 10px;
    padding: 15px 20px;
  }
}

//自定义switch 的样式 
.el-switch {
  &.inline {
    .el-switch__label {
      position: absolute;
      display: none;
      font-size: 11px !important;
      color: #fff !important;
    }

    .el-switch__label * {
      font-size: 11px !important;
    }

    /*打开时文字位置设置*/
    .el-switch__label--right {
      z-index: 1;
      left: -5px; // 这里是重点
      top: 0.5px;
    }

    /*关闭时文字位置设置*/
    .el-switch__label--left {
      z-index: 1;
      left: 23px; // 这里是重点
      top: 0.5px;
    }

    /*显示文字*/
    .el-switch__label.is-active {
      display: block;
    }

    .el-switch__core {
      width: 45px;
      height: 22px;
      border: 2px solid #DCDFE6;
      border-radius: 13px;
    }
  }
}